

$(function(){
	  $("#zhaohuo2").html("");	  
     $.ajax({
			url: urlcore + "/api/sortType/selectTwoList",
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success:function(data){
           	$.each(data.data.list,function(i,n){
            var zhaohuo2='<div class="zhaohuo_fenlei">'+
            '<h5><img src="'+n.sortUrl+'" />'+n.sortName+'</h5>'+
             '<ul class="clearfix">';
             $.each(n.sortTypeList, function(m,q) {
            zhaohuo2+='<li>'+
           '<a href="8.1.01zhaohuofenlei.html?id='+q.id+'">'+
           '<img src="'+q.sortUrl+'" />'+
           '<h6>'+q.sortName+'</h6>'+
           '</a>'+
           '</li>';
             });
               zhaohuo2+=
           '</ul>'+
          '</div>';
          $("#zhaohuo2").append(zhaohuo2);
      });
			}, 
			error:function() {
				alert("error");
			}
		})
     
});
